package com.vpclub.factory;

import com.vpclub.bean.AirPlane;

/**
 * @author : leimingchao
 * @version V1.0
 * @Project: springdemo
 * @Package com.vpclub.factory
 * @Description: TODO
 * @date Date : 2021年05月26日 23:58
 * 实例工厂
 */
public class AirPlaneInstanceFactory {

    public AirPlaneInstanceFactory() {

    }

    public AirPlane getAirPlane(String captainName) {
        System.out.println("AirPlainInstanceFactory...正在造飞机");
        AirPlane airPlane = new AirPlane();
        airPlane.setEngine("太行");
        airPlane.setCaptainName(captainName);
        airPlane.setAirWingLength("198.98cm");
        airPlane.setCapacity(300);
        return airPlane;
    }

}
